Overview
The EDL pipeline can be configured using three boolean flags at the top ofrun_full_pipeline.py. These settings control data fetching behavior, optional datasets, and cleanup operations.
Configuration Flags
All configuration flags are located inrun_full_pipeline.py at lines 61-71:
FETCH_OHLCV
boolean
default:true
Controls whether to fetch historical OHLCV (Open, High, Low, Close, Volume) data for all stocks.
True: Fetches lifetime OHLCV data using smart incremental updates- First run: ~30 minutes (downloads full history from 1976)
- Subsequent runs: ~2-5 minutes (only fetches new data)
- Enables ADR, RVOL, ATH, and % from ATH calculations
False: Skips OHLCV fetching entirely- Pipeline runs ~4 minutes faster
- Fields that depend on OHLCV will show
0ornull:5/14/20/30 Days MA ADR(%)RVOL% from ATHReturns since Earnings(%)
- Testing pipeline changes without needing price data
- Running quick fundamental-only refreshes
- Network bandwidth constraints
- Creates/updates:
ohlcv_data/{SYMBOL}.csv(one file per stock) - Creates/updates:
indices_ohlcv_data/directory for index data
FETCH_OPTIONAL
boolean
default:false
Enables fetching of standalone datasets not included in the main pipeline output.
True: Runs PHASE 6 scripts to fetch:- All market indices (
all_indices_list.json) - 194 indices - ETF data (
etf_data_response.json) - 361 ETFs
- All market indices (
False: Skips PHASE 6 entirely
Note: These files are standalone and not merged into
all_stocks_fundamental_analysis.json.gz. They’re used separately by the frontend for index tracking and ETF screening.
When to enable:
- You need fresh index composition data
- Building ETF comparison features
- Running a full data refresh for all asset classes
CLEANUP_INTERMEDIATE
boolean
default:true
Auto-deletes intermediate files after successful pipeline completion.
True: Removes all intermediate files and directories after compression- Keeps only:
*.json.gzfiles +ohlcv_data/+indices_ohlcv_data/ - Frees ~150-200 MB of disk space
- Keeps only:
False: Preserves all intermediate files for debugging
- Debugging pipeline failures
- Inspecting intermediate data quality
- Running custom analysis on raw outputs
- Developing new pipeline stages
Modifying Configuration
1
Open the pipeline runner
Navigate to the EDL Pipeline directory:
2
Edit run_full_pipeline.py
Open the file in your editor:
3
Update the flags (lines 64-71)
Modify the values according to your needs:
4
Save and run the pipeline
Common Configuration Scenarios
Quick Fundamental Refresh (No OHLCV)
Use case: Testing, quick fundamental updates
Full Production Refresh
Use case: Daily automated refresh, complete data update
Development/Debugging Mode
Use case: Inspecting intermediate outputs, debugging pipeline stages
Impact on Output Fields
WhenFETCH_OHLCV = False, the following fields in all_stocks_fundamental_analysis.json.gz will be 0 or null:
All other fundamental, technical indicator, and news fields remain unaffected.